type JSDynamicObject = any;
const obj : JSDynamicObject = {
    foo () : string {
        return 'bar';
    }
};
console.log (obj.foo ());
